from django.db import models
from django.utils.timezone import now

# Create your models here.
class Comment(models.Model):
    comment_person=models.CharField(max_length=80,verbose_name='谁评论')
    comment_date=models.DateField(default=now)
    comment_content=models.TextField(max_length=500,verbose_name='评论内容')
    comment_movie=models.CharField(max_length=10,default=None,null=True)

    class Meta:
        verbose_name = '用户评论信息'
        verbose_name_plural = verbose_name

        unique_together = (
            "comment_movie",
            'comment_person',
            'comment_content'
        )


